package com.hgd.action;

import java.util.List;
import java.util.Map;

import com.hgd.client.admin.AdminImplDelegate;
import com.hgd.client.admin.AdminImplService;
import com.hgd.client.init.InitImplDelegate;
import com.hgd.client.init.InitImplService;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class BatchLoadAction extends ActionSupport{
	private int MSId;
	private Integer adminId;
	InitImplService service = new InitImplService();
	InitImplDelegate delegate = service.getInitImplPort();
	AdminImplService adminImplService = new AdminImplService();
	AdminImplDelegate adminImplDelegate = adminImplService.getAdminImplPort();
	public String BatchLoad() throws Exception{
		System.out.println("11"+MSId + adminId);
		MSId = delegate.batchLoad(adminId);		
		
		Map<String, Object> session = ActionContext.getContext().getSession();
		if(session.get("MSId")!=null){
			session.put("MSId", MSId);
		};
		return SUCCESS;
	}
	public int getMSId() {
		return MSId;
	}
	public void setMSId(int mSId) {
		MSId = mSId;
	}
	public Integer getAdminId() {
		return adminId;
	}
	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}
}
